import Vue from 'vue'
import VueRouter from 'vue-router'
  import Menu from '../views/Menu.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'menu',
    component:Menu
  },
  {
    path: '/backAbout',
    name: 'aboutpet',
    component: () => import('../views/BackAboutPet.vue')
  },
  {
    path: '/backComment',
    name: 'comment',
    component: () => import('../views/BackComment.vue'),

  },

  {
    path: '/backKnow',
    name: 'konwofpet',
    component: () => import('../views/BackKnowOfPet.vue')
  },
  {
    path: '/backConsult',
    name: 'consult',
    component: () => import('../views/BackPetConsult.vue')
  },
  {
    path: '/backDoctor',
    name: 'doctor',
    component: () => import('../views/BackPetDoctor.vue')
  },
  {
    path: '/backNotice',
    name: 'notice',
    component: () => import('../views/BackNotice.vue')
  },
  {
    path: '/admin',
    name: 'admin',
    component: () => import('../views/admin.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('../views/user.vue')
  },
  {
    path:'/adlog',
    name:'adlog',
    component: () => import('../components/AdLogoin.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
